package cn.tedu.em.common.pojo.advise.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AdviseAddNewDTO implements Serializable {

    /**
     * 建议用户的姓名
     */
    @ApiModelProperty(value = "用户姓名", required = true, example = "张三")
    @NotNull(message = "添加姓名失败，必须提交姓名名称！")
    private String name;

    /**
     *建议用户的电话
     */
    @ApiModelProperty(value = "用户电话", required = true, example = "12345678910")
    @NotNull(message = "添加电话失败，必须提交用户电话！")
    private String phone;

    /**
     *用户建议的内容
     */
    @ApiModelProperty(value = "建议内容", required = true, example = "态度不好")
    @NotNull(message = "添加建议内容失败，必须提交建议内容！")
    private String content;

    /**
     *用户ID
     */
    @ApiModelProperty(value = "用户id", required = true, example = "1")
    @NotNull(message = "添加用户id内容失败，必须提交用户id内容！")
    private Long userId;
}
